import { request } from "@/utils/service"

/** 部门总监,内设机构同意请假单 */
export function ratifyLeave(data: any) {
  return request<any>({
    url: "/staffLeave/ratifyLeave",
    method: "post",
    data
  })
}

/** 部门总监审核并批准 销假 */
export function examineRatifyLeave(id: any) {
  return request<any>({
    url: `/staffLeave/examineRatifyLeave/${id}`,
    method: "get"
  })
}
/** 员工填写销假时间 */
export function staffWriteReportingTime(data: any) {
  return request<any>({
    url: "/staffLeave/staffWriteReportingTime",
    method: "post",
    data
  })
}
